package com.burstly.lib.component.networkcomponent.burstly.html.mraid;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.burstly.lib.component.networkcomponent.burstly.html.IRichMediaAdListener;
import com.burstly.lib.util.LoggerExt;

class OpenEvent extends MraidEvent
{
  static final int EVENT_ID = 1;
  private static final LoggerExt LOG = LoggerExt.getInstance();
  private static final String TAG = OpenEvent.class.getSimpleName();

  void fireEvent(MraidView paramMraidView, Object[] paramArrayOfObject)
  {
    if ((paramArrayOfObject != null) && (paramArrayOfObject.length >= 1) && ((paramArrayOfObject[0] instanceof String)));
    String str;
    for (Object localObject = paramArrayOfObject[0]; ; localObject = null)
    {
      str = (String)localObject;
      if (str != null)
        break;
      LOG.logWarning(TAG, "Url is null. Skipped.", new Object[0]);
      return;
    }
    if (paramMraidView.mRichMediaListener != null)
    {
      paramMraidView.mRichMediaListener.onClick(str);
      return;
    }
    MraidView.LOG.logDebug(MraidView.TAG, "Executing 'openUrlExternal' {0}", new Object[] { str });
    try
    {
      Intent localIntent = new Intent("android.intent.action.VIEW", Uri.parse(str));
      paramMraidView.getContext().startActivity(localIntent);
      return;
    }
    catch (Exception localException)
    {
      MraidView.LOG.logError(MraidView.TAG, localException.getMessage(), new Object[0]);
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.mraid.OpenEvent
 * JD-Core Version:    0.6.2
 */